<template>
  <div class="container" >
    <data-view
      ref="childDataView"
      propViewKey="base_patient"
      propViewForm="base/patient/detail.vue"
      :propFlowKey="propFlowKey"
      @extra-button-click="handelExtraButton"
      :propShowToolBar="true"
      :propIsTdesign="true"
    />
  </div>
</template>

<script>

export default {
  name: 'patient',
  data() {
    return {

    }
  },
  components: {

  },
  methods: {
    handelExtraButton(para) {
      if (para.button.key === 'syncPatient') {
        this.utils.runOnceByInvokeTarget('同步病人信息', 'hisPatientImpl.syncHisPatient', () => {
          this.$refs.childDataView.ocRefresh()
        })
      }
    }
  },
  props: ['propFlowKey'],
}
</script>
